package com.example.ccj.b.c.custom.file;

import java.io.File;
import java.util.Objects;

public class FileMode {
    public static final int LOCAL_FILE = 0;
    public static final int NETWORK_FILE = 1;



    public String path;
    public int type = LOCAL_FILE; //0：本地文件  1：网络文件
    public File file;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FileMode fileMode = (FileMode) o;
        return Objects.equals(path, fileMode.path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path, file);
    }
}
